package com.aiyige.base.eventbus;

import com.aiyige.model.CustomerRequestModel;

/**
 * Created by zhuyakun on 2017/12/26.
 */

public class EventCustomerChanged {
    CustomerRequestModel customerRequestModel;
    public EventCustomerChanged() {
    }

    public EventCustomerChanged(CustomerRequestModel customerRequestModel) {
        this.customerRequestModel = customerRequestModel;
    }

    private EventCustomerChanged(Builder builder) {
        setCustomerRequestModel(builder.customerRequestModel);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public CustomerRequestModel getCustomerRequestModel() {
        return customerRequestModel;
    }

    public void setCustomerRequestModel(CustomerRequestModel customerRequestModel) {
        this.customerRequestModel = customerRequestModel;
    }

    public static final class Builder {
        private CustomerRequestModel customerRequestModel;

        private Builder() {
        }

        public Builder customerRequestModel(CustomerRequestModel customerRequestModel) {
            this.customerRequestModel = customerRequestModel;
            return this;
        }

        public EventCustomerChanged build() {
            return new EventCustomerChanged(this);
        }
    }
}
